package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TEmployeeMapper;
import com.ruoyi.system.domain.TEmployee;
import com.ruoyi.system.service.ITEmployeeService;

/**
 * 员工信息Service业务层处理
 * 
 * @author 徐国洋
 * @date 2025-02-24
 */
@Service
public class TEmployeeServiceImpl implements ITEmployeeService 
{
    @Autowired
    private TEmployeeMapper tEmployeeMapper;

    /**
     * 查询员工信息
     * 
     * @param id 员工信息主键
     * @return 员工信息
     */
    @Override
    public TEmployee selectTEmployeeById(Long id)
    {
        return tEmployeeMapper.selectTEmployeeById(id);
    }

    /**
     * 查询员工信息列表
     * 
     * @param tEmployee 员工信息
     * @return 员工信息
     */
    @Override
    public List<TEmployee> selectTEmployeeList(TEmployee tEmployee)
    {
        return tEmployeeMapper.selectTEmployeeList(tEmployee);
    }

    /**
     * 新增员工信息
     * 
     * @param tEmployee 员工信息
     * @return 结果
     */
    @Override
    public int insertTEmployee(TEmployee tEmployee)
    {
        return tEmployeeMapper.insertTEmployee(tEmployee);
    }

    /**
     * 修改员工信息
     * 
     * @param tEmployee 员工信息
     * @return 结果
     */
    @Override
    public int updateTEmployee(TEmployee tEmployee)
    {
        return tEmployeeMapper.updateTEmployee(tEmployee);
    }

    /**
     * 批量删除员工信息
     * 
     * @param ids 需要删除的员工信息主键
     * @return 结果
     */
    @Override
    public int deleteTEmployeeByIds(Long[] ids)
    {
        return tEmployeeMapper.deleteTEmployeeByIds(ids);
    }

    /**
     * 删除员工信息信息
     * 
     * @param id 员工信息主键
     * @return 结果
     */
    @Override
    public int deleteTEmployeeById(Long id)
    {
        return tEmployeeMapper.deleteTEmployeeById(id);
    }
}
